
from app.views import  index,cat,detail


#请求路由转换
def request_rule(app):
    app.add_url_rule('/', view_func=index)
    app.add_url_rule('/cat/<name>/', view_func=cat)
    app.add_url_rule('/detail/<pk>/', view_func=detail)